using System;
using System.Collections.Generic;
using System.Linq;


namespace bci2
{
#if WINDOWS || XBOX
    static class Program{
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args){
            /*  Setto dei valori di default per far partire il tutto senza GUI-WinForm*/
            bool screen=false;
            int width=1024, height=768;
            if (args.Length!=0){
                if(args.ElementAt(0)== "true"){
                    screen = true;
                }if(args.ElementAt(0) == "false"){
                    screen = false;
                }
               switch (args.ElementAt(1)) { 
                    case "800x600":
                        width = 800;
                        height = 600;
                    break;
                    case "1024x768":
                        width = 1024;
                        height = 768;
                    break;
                    case "1366x768":
                        width = 1366;
                        height = 768;
                    break;
                }
            }
            using (Game1 game = new Game1(screen, width, height)){
                game.Run();
            }
        }
    }
#endif
}

